<template>
  <div>
    <c-table
      border
      class="table-sm"
      header-cell-class-name="bg-light"
      v-loading="loading"
      :columns="tableColumns"
      :data="tableData"
    ></c-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      loading: false,
      tableColumns: [
        { attrs: { label: '年度事件', prop: 'year', align: 'center' }, process: v => v || '-' },
        { attrs: { label: '纳税信用评级得分', align: 'center' }, process: v => v || '-' },
        { attrs: { label: '当前评级结果', align: 'center' }, process: v => v || '-' },
        { attrs: { label: '是否补评', align: 'center' }, process: v => v || '-' },
        { attrs: { label: '不予评价原因', align: 'center' }, process: v => v || '-' },
        { attrs: { label: '主管税务机关', align: 'center' }, process: v => v || '-' },
      ],
      tableData: [],
    }
  },

  created() {
    this.getData()
  },
  methods: {
    getData() {
      const year = new Date().getFullYear()
      for (let i = 0; i < 3; i++) {
        this.tableData.push({
          year: year - i + '年度',
        })
      }
    },
  },
}
</script>
<style lang="scss" scoped></style>
